// 禁止选择，形成可复制的选区
document.onselectstart = function(){
	var el = event.srcElement;
	if (!((el.tagName == "INPUT" && el.type.toLowerCase() == "text") || el.tagName == "TEXTAREA"|| el.tagName == "SELECT")){
		return false;
	}
}
// for FF
if(window.Event){
	Ext.onReady(function(){
		document.getElementsByTagName('body')[0].style.MozUserSelect = 'none';
	});
	Ext.fly(document).on('mousedown', function(e){
		if (/(input|textarea|select)/ig.test(e.target.tagName)){
			document.getElementsByTagName('body')[0].style.MozUserSelect = 'text';
		}else{
			document.getElementsByTagName('body')[0].style.MozUserSelect = 'none';
		}
	});
}
// 禁止鼠标右键
/*/
document.oncontextmenu = function(){
	return false;
};
*/